//- Copyright (c) 2016 Lucky Byte, Inc.

input(type="hidden" name="serial" value="#{record.serial || ''}")
input(type="hidden" name="uuid" value="#{record.uuid || ''}")

// 用于组织上传数据
input(type="hidden" name="trctl"
  value="#{record.trctl ? JSON.stringify(record.trctl) : ''}")

h4.ui.dividing.header
  i.caret.down.icon.link.grey.accordion
  | 基本信息

.fields
  .field.eight.wide.required
    label.ui 名称或代号:
    .ui.input
      input(type="text" name="name" placeholder="必填"
        value="#{record.name || ''}")

h4.ui.dividing.header
  i.caret.down.icon.link.grey.accordion
  | 交易控制

include trctl

h4.ui.dividing.header
  i.caret.down.icon.link.grey.accordion
  | 备注信息

.fields
  textarea(name="notes" type="text" rows="3"
    placeholder="在此进行更多描述")= record.notes || ''
